package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Ygzc generated by hbm2java
 */
@Entity
@Table(name = "ygzc")
public class Ygzc implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private Long cjzc;
    private BigDecimal cjzcbl;
    private Long zjzc;
    private BigDecimal zjzcbl;
    private Long gjzc;
    private BigDecimal gjzcbl;

    public Ygzc()
    {
    }

    public Ygzc( Long id )
    {
        this.id = id;
    }

    public Ygzc( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 Long cjzc,
                 BigDecimal cjzcbl,
                 Long zjzc,
                 BigDecimal zjzcbl,
                 Long gjzc,
                 BigDecimal gjzcbl)
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.cjzc = cjzc;
        this.cjzcbl = cjzcbl;
        this.zjzc = zjzc;
        this.zjzcbl = zjzcbl;
        this.gjzc = gjzc;
        this.gjzcbl = gjzcbl;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "cjzc", precision = 18, scale = 0)
    public Long getCjzc()
    {
        return this.cjzc;
    }

    public void setCjzc( Long cjzc )
    {
        this.cjzc = cjzc;
    }

    @Column(name = "cjzcbl", precision = 18)
    public BigDecimal getCjzcbl()
    {
        return this.cjzcbl;
    }

    public void setCjzcbl( BigDecimal cjzcbl )
    {
        this.cjzcbl = cjzcbl;
    }

    @Column(name = "zjzc", precision = 18, scale = 0)
    public Long getZjzc()
    {
        return this.zjzc;
    }

    public void setZjzc( Long zjzc )
    {
        this.zjzc = zjzc;
    }

    @Column(name = "zjzcbl", precision = 18)
    public BigDecimal getZjzcbl()
    {
        return this.zjzcbl;
    }

    public void setZjzcbl( BigDecimal zjzcbl )
    {
        this.zjzcbl = zjzcbl;
    }

    @Column(name = "gjzc", precision = 18, scale = 0)
    public Long getGjzc()
    {
        return this.gjzc;
    }

    public void setGjzc( Long gjzc )
    {
        this.gjzc = gjzc;
    }

    @Column(name = "gjzcbl", precision = 18)
    public BigDecimal getGjzcbl()
    {
        return this.gjzcbl;
    }

    public void setGjzcbl( BigDecimal gjzcbl )
    {
        this.gjzcbl = gjzcbl;
    }

}
